<template>
	<view class="page">
		<nav-bar back>好友申请</nav-bar>
		<view class="content">
			<view class="user-wrap flex">
				<image src="/static/image/new.png" mode=""></image>
				<view class="user-info">
					<view>故乡的风</view>
					<text>手机号：198****123</text>
				</view>
			</view>
			<view class="font-28">
				<view class="title">对方留言:</view>
				<view class="desc">
					我是中环东北1群的小蔡群的小蔡群的小蔡群的小蔡群的小蔡
				</view>
			</view>
			<view class="font-28">
				<view class="title">来源:</view>
				<view class="desc">
					我是中环东北1群的小蔡
				</view>
			</view>
			<view class="btn flex">
				<up-button text="拒绝" style="margin-right: 20rpx;" @click="handleRefuse"></up-button>
				<up-button type="primary" text="同意" @click="handleAgree"></up-button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				newFriendList: []
			}
		},
		methods: {
			handleRefuse() {
				uni.showModal({
					title: '确认拒绝?',
					content: `拒绝该好友的好友申请?`,
					success: () => {
						console.log(111)
					}
				})
			},
			handleAgree() {
				uni.showModal({
					title: '确认同意?',
					content: `通过该好友的好友申请,确认同意?`,
					success: () => {
						console.log(111)
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page {
		background-color: #fff;
	}

	.flex {
		display: flex;
		align-items: center;
	}

	.font-28 {
		font-size: 28rpx;
	}

	.user-wrap {
		padding: 40rpx 0;

		image {
			width: 104rpx;
			height: 104rpx;
			margin-right: 20rpx;
		}
	}

	.content {
		padding: 20rpx;

		.user-wrap {
			line-height: 50rpx;

			.user-info {
				font-size: 32rpx;

				text {
					color: #666;
				}
			}
		}

		.title {
			margin: 20rpx 0;
		}

		.desc {
			padding: 20rpx 40rpx;
			color: #999;
			background-color: #f5f5f5;
			border-radius: 10rpx;
		}
	}

	.btn {
		margin-top: 100rpx;
	}
</style>